define(function(){
    return function (res, goods, cont){
        let str = "";
        for(let j=0;j<goods.length;j++){
        for(let i=0;i<res.length;i++){
                if(res[i].proId === goods[j].id){
                    // console.log(res[i], goods[j].num)
                    str += `<tr id="${res[i].proId}">
                                <td><input type="checkbox" ${goods[j].check ? 'checked' : ''} class="check"></td>
                                <td><img src="${res[i].img}"></td>
                                <td>${res[i].proName}</td>
                                <td><input type="number" value="${goods[j].num}" class="setNum" min="1"></td>
                                <td>${res[i].price}</td>
                                <td class="sum">${res[i].price * goods[j].num}</td>
                                <td class="del">删除</td>
                            </tr>`
                }
            }
        }
        cont.html(str);
    }
})